package com.pine.dbant.core.service;

import com.pine.dbant.common.plugin.meta.MetadataNode;
import com.pine.dbant.core.entity.Connection;
import com.pine.dbant.core.model.dto.ConnectionDTO;
import com.pine.dbant.core.model.vo.ConnectionVO;

import java.util.List;

public interface ConnectionService {

    List<MetadataNode> getTree();

    void save(ConnectionDTO connectionDTO);

    void update(ConnectionDTO connectionDTO);

    void deleteById(Long connId);

    void copy(Long connId,Long dirId);

    ConnectionVO getVOById(Long connId);

    Connection getById(Long connId);


    List<ConnectionVO>  list();


}
